/* tslint:disable */
/* eslint-disable */

import React, { FunctionComponent } from 'react';
import { ViewProps } from 'react-native';
import { GProps } from 'react-native-svg';
import IconAIconqiehuan from './IconAIconqiehuan';
import IconAIconshanchu from './IconAIconshanchu';
import IconAJijiabanoff from './IconAJijiabanoff';
import IconTishi from './IconTishi';
import IconAIcongou from './IconAIcongou';
import IconAJijiabanon from './IconAJijiabanon';
import IconAIconbianji from './IconAIconbianji';
import IconAIconfanhui from './IconAIconfanhui';
export { default as IconAIconqiehuan } from './IconAIconqiehuan';
export { default as IconAIconshanchu } from './IconAIconshanchu';
export { default as IconAJijiabanoff } from './IconAJijiabanoff';
export { default as IconTishi } from './IconTishi';
export { default as IconAIcongou } from './IconAIcongou';
export { default as IconAJijiabanon } from './IconAJijiabanon';
export { default as IconAIconbianji } from './IconAIconbianji';
export { default as IconAIconfanhui } from './IconAIconfanhui';

export type IconNames = 'icon-a-iconqiehuan' | 'icon-a-iconshanchu' | 'icon-a-jijiabanoff' | 'icon-tishi' | 'icon-a-icongou' | 'icon-a-jijiabanon' | 'icon-a-iconbianji' | 'icon-a-iconfanhui';

interface Props extends GProps, ViewProps {
  name: IconNames;
  size?: number;
  color?: string | string[];
}

let IconFont: FunctionComponent<Props> = ({ name, ...rest }) => {
  switch (name) {
    case 'icon-a-iconqiehuan':
      return <IconAIconqiehuan key="1" {...rest} />;
    case 'icon-a-iconshanchu':
      return <IconAIconshanchu key="2" {...rest} />;
    case 'icon-a-jijiabanoff':
      return <IconAJijiabanoff key="3" {...rest} />;
    case 'icon-tishi':
      return <IconTishi key="4" {...rest} />;
    case 'icon-a-icongou':
      return <IconAIcongou key="5" {...rest} />;
    case 'icon-a-jijiabanon':
      return <IconAJijiabanon key="6" {...rest} />;
    case 'icon-a-iconbianji':
      return <IconAIconbianji key="7" {...rest} />;
    case 'icon-a-iconfanhui':
      return <IconAIconfanhui key="8" {...rest} />;
  }

  return null;
};

IconFont = React.memo ? React.memo(IconFont) : IconFont;

export default IconFont;
